An optoisolator A photodetector A Hall-effect transistor An LED 3